#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
	char *data = NULL;
	long m, n;

	printf("Content-type:text/plain\r\n\r\n");
	printf(" ");
	printf("[result]:\n");

	data = getenv("QUERY_STRING");
	if(data == NULL)
		printf("error, data is null\n");
	else if(sscanf(data,"m=%ld&n=%ld", &m, &n) != 2)
		printf("error, invalid param.\n");
	else
		printf("%ld * %ld = %ld\n", m, n, m*n);
	return 0;
	
}
